package com.dzf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author wcrc
 * 博客的类型
 *
 */
@Document("t_type")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Type {
    /**
     * id：类型id
     * name:类型的名字
     */
    @Id
    private String id;
    private String name;
    private int num;


}
